package com.oba.king.sysmanager.area;

import java.util.Date;

import javax.swing.tree.MutableTreeNode;

import com.oba.base.interfaces.ITreeItem;
import com.oba.base.service.BaseBo;
import com.oba.king.login.UserInfo;
import com.oba.king.sysmanager.Dept;

public class Area extends BaseBo implements ITreeItem {

	private Long areaId;
	private String areaName;
	private String belongProvince;
	private String belongCity;
	private Dept department;
	private UserInfo user;
	private boolean inActive;
	private Area parent;
	private String remark;
	private String serial;

	private MutableTreeNode node;

	public Long getAreaId() {
		return areaId;
	}

	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getBelongProvince() {
		return belongProvince;
	}

	public void setBelongProvince(String belongProvince) {
		this.belongProvince = belongProvince;
	}

	public String getBelongCity() {
		return belongCity;
	}

	public void setBelongCity(String belongCity) {
		this.belongCity = belongCity;
	}

	public Dept getDepartment() {
		return department;
	}

	public void setDepartment(Dept department) {
		this.department = department;
	}

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

	public boolean isInActive() {
		return inActive;
	}

	public void setInActive(boolean inActive) {
		this.inActive = inActive;
	}

	public Area getParent() {
		return parent;
	}

	public void setParent(Area parent) {
		this.parent = parent;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public Long getId() {
		return areaId;
	}

	public String getName() {
		return areaName;
	}

	public MutableTreeNode getNode() {
		return node;
	}

	public boolean isParent(ITreeItem parentItem) {
		Area a = (Area) parentItem;
		return serial.startsWith(a.getSerial());
	}

	public void setNode(MutableTreeNode treeNode) {
		this.node = treeNode;
	}

}
